Configure SSL
|
Configure for SSL in order to encrypt datas in connection. |
|
[1] | Create certificates first, see here.
|
[2] | Configure Postfix and Dovecot |
[root@mail certs]# vi /etc/postfix/main.cf # add at the bottom smtpd_use_tls = yes smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt smtpd_tls_key_file = /etc/pki/tls/certs/server.key smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache [root@mail certs]# vi /etc/postfix/master.cf # line 17-18: uncomment smtps inet n - n - - smtpd -o smtpd_tls_wrappermode=yes [root@mail certs]# vi /etc/dovecot.conf # line 89: uncomment ssl = yes # line 95,96: uncomment and specify certificate ssl_cert_file = /etc/pki/tls/certs/server.crt ssl_key_file = /etc/pki/tls/certs/server.key [root@mail certs]# /etc/rc.d/init.d/postfix restart Shutting down postfix: [ OK ] Starting postfix: [ OK ] [root@mail certs]# /etc/rc.d/init.d/dovecot restart Stopping Dovecot Imap: [ OK ] Starting Dovecot Imap: [ OK ] |
Configure on client. Change settings like following example. | |
Run send/receive email on Outlook Express, then following warning is shown because certificate file is not installed in your system. It's no ploblem. Click 'Yes' to Proceed. | |